import axios from '@/utils/request'

function getCart (query){
    console.log(query,'query')
    return axios.get('/api/getcart',{params:query})
}
function ADDCart(body){
    console.log(body)
   return axios.post('/api/addcart',body)
}
function SETCount(query){
    console.log(query,'setcount query')
    return axios.put('/api/edmit',{params:query})
}

export default {
    getCart,
    ADDCart,
    SETCount
}